<%@ page import="java.util.Map" %>
<%--@elvariable id="calculateChimney" type="com.infitecs.eyas.combustion.model.CalculateChimney"--%>
<%--
  Created by IntelliJ IDEA.
  User: Demon
  Date: 2015/6/15
  Time: 16:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
</head>
<%
    Map<String, Double> dataMap = (Map<String, Double>) request.getAttribute("dataMap");
%>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--内容开始-->
                                <div class="row">
                                    <div class="col-md-8">
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E306">排烟进入烟囱内筒的机组台数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           onblur="ChimneyPage.updata('E306')"
                                                           value="${calculateChimney.e306Show}"
                                                           id="E306"/>
                                                    <span class="help-inline">
                                                        台
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E307">地面10m高度处平均风速</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           onblur="ChimneyPage.updata('E307')"
                                                           value="${calculateChimney.e307Show}"
                                                           id="E307"/>
                                                    <span class="help-inline">
                                                        m/s
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E308">烟囱几何高度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           onblur="ChimneyPage.updata('E308')"
                                                           value="${calculateChimney.e308Show}"
                                                           id="E308"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E309">烟囱入口烟道中心高度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           onblur="ChimneyPage.updata('E309')"
                                                           value="${calculateChimney.e309Show}"
                                                           id="E309"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                    id="E314Label"   for="E314">烟囱入口烟气温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           onblur="ChimneyPage.updata('E314')"
                                                           value="${calculateChimney.e314Show}"
                                                           id="E314"/>
                                                    <span class="help-inline">
                                                        ℃<input type="checkbox" id="E314State" name="E314State"
                                                        <c:if test="${calculateChimney!=null&&operateField.e314State=='1'}">
                                                                   checked
                                                       </c:if>
                                                                >
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       id="E315Label"       for="E315">烟囱入口湿烟气密度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           onblur="ChimneyPage.updata('E315')"
                                                           value="${calculateChimney.e315Show}"
                                                           id="E315"/>
                                                    <span class="help-inline">
                                                        KG/m<sup>3</sup>
                                                       <input type="checkbox" id="E315State" name="E315State"
                                                       <c:if test="${calculateChimney!=null&&operateField.e315State=='1'}">
                                                                  checked
                                                      </c:if>
                                                               >
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       id="E316Label"      for="E316">烟囱入口湿烟气体积流量</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           onblur="ChimneyPage.updata('E316')"
                                                           value="${calculateChimney.e316Show}"
                                                           id="E316"/>
                                                    <span class="help-inline">
                                                        m<sup>3</sup>/s
                                                        <input type="checkbox" id="E316State" name="E316State"
                                                        <c:if test="${calculateChimney!=null&&operateField.e316State=='1'}">
                                                                   checked
                                                       </c:if>
                                                                >
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E318">烟囱自生通风</label>

                                                <div class="col-md-8">
                                                    <input type="text" readonly
                                                           class="form-control input-inline calculable nofill"
                                                           onblur="ChimneyPage.updata('E318')"
                                                           value="${calculateChimney.e318Show}"
                                                           id="E318"/>
                                                    <span class="help-inline">
                                                        Pa
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E320_select">烟囱内衬型式</label>

                                                <div class="col-md-8">
                                                    <select id="E320_select"
                                                            onchange="$('#E320').val($('#E320_select').val());ChimneyPage.updata('E320')">
                                                        <option value="0.0"
                                                                <c:if test="${calculateChimney.e320==0.0}">selected</c:if>  >
                                                            干烟囱
                                                        </option>
                                                        <option value="1.0"
                                                                <c:if test="${calculateChimney.e320==1.0}">selected</c:if> >
                                                            合金内衬
                                                        </option>
                                                        <option value="2.0"
                                                                <c:if test="${calculateChimney.e320==2.0}">selected</c:if> >
                                                            涂料内衬
                                                        </option>
                                                        <option value="3.0"
                                                                <c:if test="${calculateChimney.e320==3.0}">selected</c:if> >
                                                            玻璃砖类内衬
                                                        </option>
                                                    </select>
                                                </div>
                                                <input id="E320" type="hidden" value="${calculateChimney.e320Show}">
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-2" style="padding-left: 0"
                                                       for="E321">排烟筒内壁摩擦阻力系数</label>

                                                <div class="col-md-4">
                                                    <select id="E321_select" style="width: 100%"
                                                            onchange="$('#E321').val($('#E321_select').val())">
                                                        <option value="0.015"
                                                                <c:if test="${calculateChimney.e321==0.015}">selected</c:if> >
                                                            钢烟囱D >= 2m
                                                        </option>
                                                        <option value="0.02"
                                                                <c:if test="${calculateChimney.e321==0.02}">selected</c:if> >
                                                            钢烟囱D < 2m
                                                        </option>
                                                        <option value="0.05"
                                                                <c:if test="${calculateChimney.e321==0.05}">selected</c:if>>
                                                            砖烟道
                                                        </option>
                                                    </select>
                                                </div>
                                                <div class="col-md-6">
                                                    <input type="text" class="form-control input-inline"
                                                           disabled="disabled" id="E321" value="${calculateChimney==null?calculateChimney.e321Show:"0.015"}"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E322">烟囱内壁坡度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           onblur="ChimneyPage.updata('E322')"
                                                           value="${calculateChimney.e322Show}"
                                                           id="E322"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E323">全程静压控制最小出口直径</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           readonly
                                                           value="${calculateChimney.e323Show}"
                                                           id="E323"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E324">内衬型式控制最小出口直径</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           readonly
                                                           value="${calculateChimney.e324Show}"
                                                           id="E324"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E325">出口流速下控制限最大出口直径</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline calculable"
                                                           readonly
                                                           value="${calculateChimney.e325Show}"
                                                           id="E325"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E326">设定排烟筒出口直径</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline"
                                                           value="${calculateChimney.e326Show}"
                                                           id="E326"/>
                                                    <span class="help-inline">
                                                        m
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E327">排烟筒出口烟气流速</label>

                                                <div class="col-md-8">
                                                    <input type="text"
                                                           class="form-control input-inline calculable nofill"
                                                           readonly
                                                           value="${calculateChimney.e327Show}"
                                                           id="E327"/>
                                                    <span class="help-inline">
                                                        m/s
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E328">静压准则数(RT)</label>

                                                <div class="col-md-8">
                                                    <input type="text"
                                                           class="form-control input-inline calculable nofill"
                                                           readonly
                                                           value="${calculateChimney.e328Show}"
                                                           id="E328"/>
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-body">
                                             <div class="row">
                                                 <div class="col-md-5">
                                                 </div>
                                                 <div class="col-md-3">
                                                     <button type="button" class="btn green" id="save"
                                                             onclick="ChimneyPage.chimneySave()">确定
                                                     </button>
                                                     <button type="button" class="btn green" id="nextPage"
                                                             onclick="ChimneyPage.chimneyNext()">下一页
                                                     </button>
                                                 </div>
                                                 <div class="col-md-4">
                                                     检验状态：
                                                     <input type="text" class="form-control input-inline"
                                                     id="validateType"  readonly value="<%=dataMap==null?"":dataMap.get("E329")==null?"":dataMap.get("E329")>0?"合格":"不合格"%>"  style="width: 100px" />
                                                     <button id="verification" type="button" class="btn green pull-right">验证</button>
                                                 </div>
                                                 <!--/span-->
                                             </div>
                                             <!--/span-->
                                         </div>
                                    </div>
                                </div>
                                <!--内容结束-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-modal-lg" id="modal" tabindex="-1" data-keyboard="false" aria-hidden="true"
     data-backdrop="static">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" id="modalContent">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title" id="modalTitle"></h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        结果：
                        <div color="red" id="Y">合格</div>
                        <div color="red" id="N">不合格请重新假定出口直径</div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal">返回</button>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${calculateChimney==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script src="<c:url value="/js/combustion/ChimneyPage1.js"/>" type="text/javascript"></script>
 <script>
     $(function () {
         var caseId = $("#caseId").val();
         var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
         if (caseId == "" || step != "") {
             var obj = getUrlByStep(step)
             toast.error(obj.message);
             setTimeout(function () {
                 window.location.href = obj.url;
             }, 1200);
         }

         <%
          String message = (String) request.getAttribute("message");
          if(message!=null&&!"".equals(message)){
          if(message.equals("success")){
          %>
         toast.success("操作成功");
         <%
         }else{
         %>
         toast.error("<%=request.getAttribute("message")%>");
         <%
          }
             }
         %>

         ChimneyPage.init();
         ChimneyPage.E314StateClick($("#E314State"),1);
         ChimneyPage.E315StateClick($("#E315State"),1);
         ChimneyPage.E316StateClick($("#E316State"),1);
     })
</script>
</body>
</html>
